package com.jmb.backend.service;

import com.jmb.backend.exception.BusinessException;
import com.jmb.backend.pojo.InterfaceAssertDO;
import org.springframework.transaction.annotation.Transactional;

public interface InterfaceAssertService {
//    @Transactional(rollbackFor = Exception.class)
    void saveAssert(InterfaceAssertDO interfaceAssertDO) throws BusinessException;

    @Transactional(rollbackFor = Exception.class)
    void modifyAssert(InterfaceAssertDO interfaceAssertDO) throws BusinessException;

    @Transactional(rollbackFor = Exception.class)
    void removeAssertByCaseId(Integer caseId);

    @Transactional(rollbackFor = Exception.class)
    void removeAssertByAssertId(Integer assertId);
}
